package eo.descriptor.query.impl;

import java.io.Serializable;

import eo.descriptor.query.NamedQueryDescriptor;

public class UnmodifiableNamedQueryDescriptor implements NamedQueryDescriptor,
        Serializable {
    private static final long serialVersionUID = -3521239572545843120L;
    private final String name, query;

    public UnmodifiableNamedQueryDescriptor(final String name, final String query) {
        super();
        this.name = name;
        this.query = query;
    }

    /**
     * @return the name
     */
    public String getName() {
        return this.name;
    }

    /**
     * @return the query
     */
    public String getQuery() {
        return this.query;
    }
}
